﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 购买课程订单记录
    /// </summary>
    public class BuyOrder
    {
        public BuyOrder()
        {
            CreatedDate = DateTime.Now;
            UpdatedDate = DateTime.Now;
        }

        public Guid Id { get; set; }
        public Guid CourseId { get; set; }//课程编号
        public Course Course { get; set; }//关联课程，一直访问
        public Guid UserId { get; set; }
        public User User { get; set; }

        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
    }
}